#!/bin/bash
cd ui && rm -rf dist && npm install && npm run build && \
ssh root@47.112.172.220/ 'cd /opt/app/nginx/html/jeepayuser/ && ls -I MP* | rm -rf' && \
scp -r dist/* root@47.112.172.220/:/opt/app/nginx/html/jeepayuser/ && \
cd - && \
ssh root@47.112.172.220/ 'ls -al /opt/app/nginx/html/jeepayuser/'